grammar GeneratorAdapterAntlr;  
@header {
	package cool.taomu.software.fig.antlr4; 
}

s : expr EOF;  

expr
    : 'goto' LABEL expr
    | 'ld' STRING expr
    | LABEL 
    ;

LABEL: 'L'[0-9]+;
STRING: '"'('""'|~'"')* '"'; 
NUMBER: [0-9]+; 
COMMENT: ';' ~[\r\n]* -> skip;
WS: [ \t\r\n]+ -> skip; 
